﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;

namespace WebApp.Models
{
    /// <summary>
    /// 命令执行请求
    /// </summary>
    public class IoTCmdReq
    {
        /// <summary>
        /// 所属应用
        /// </summary>
        [Required]
        public int AppId { get; set; }
        /// <summary>
        /// 电表
        /// </summary>
        [Required]
        public string MeterCode { get; set; }
        /// <summary>
        /// 执行命令
        /// </summary>
        [Required]
        public string Command { get; set; }
        /// <summary>
        /// 请求ID，回调返回
        /// </summary>
        public string RequestId { get; set; }
        /// <summary>
        /// 回调地址
        /// </summary>
        public string CallbackUrl { get; set; }
    }
}
